﻿using System;
using System.Windows.Forms;

namespace Module_Debug
{
    public partial class DSC_setting : Form
    {
        frmMain MainForm = null;

        public DSC_setting(frmMain Frm)
        {
            MainForm = Frm;
            InitializeComponent();
            label2.Text = "......";
        }

        private void btnPattern_auto_Click(object sender, EventArgs e)
        {
            DSC_V_Line.Value = (int)MainForm.VACT.Value;
            DSC_H_Line.Value = (int)MainForm.HACT.Value * 3;
            label2.Text = "自动获取参数成功，请点击设置生效";
        }

        public void setting_to_main(object sender, EventArgs e)
        {
            MainForm.VACT_True_setting = (int)DSC_V_Line.Value;
            MainForm.HACT_True_setting = (int)DSC_H_Line.Value;
            label2.Text = "设置已生效";
        }
    }
}
